#ifndef NACCOUNTWIN_H
#define NACCOUNTWIN_H
#include "solar/trunk/NEdit.h"
#include "solar/trunk/NScopLabel.h"
#include "solar/trunk/NVerifyCode.h"
#include "solar/trunk/NcomboBox.h"

typedef enum {
    UI_LOGIN,
    UI_REGISTER,
    UI_DATUMINFO,
    FC_UNLOGIN
} CAPBAREXTRA;

class MediaBranchAC{

public:
        MediaBranchAC();

        QWidget *User_clockWidget = new QWidget();

        //------User Login------"""
        Nwidget *Login_Widget = new Nwidget(User_clockWidget);
        QVBoxLayout *Login_Vbox = new QVBoxLayout(Login_Widget);
        QWidget *Login_inner = new QWidget(User_clockWidget);
        QVBoxLayout *Login_innerVbox = new QVBoxLayout(Login_inner);

        NinsipidView *Login_head = new NinsipidView(User_clockWidget);
        QHBoxLayout *Login_headHbox = new QHBoxLayout();
        NcomboBox *Login_idLibox = new NcomboBox(User_clockWidget);
        NLineEdit *Login_keyLine = new NLineEdit(User_clockWidget);

        // Login Assist Function Divition
        QHBoxLayout *Login_assistHbox = new QHBoxLayout();
        QCheckBox *Login_autoLogincBox = new QCheckBox(User_clockWidget);
        QCheckBox *Login_fillkeycBox = new QCheckBox(User_clockWidget);
        NinsipidView *Login_forgetKey = new NinsipidView(User_clockWidget);
        QPushButton *Login_sumbit = new QPushButton("login");

        //------User Register------"""
        Nwidget *Register_Widget = new Nwidget(User_clockWidget);
        Nwidget *Register_inner = new Nwidget(User_clockWidget);
        QVBoxLayout *Register_innerVbox = new QVBoxLayout(Register_inner);
        QVBoxLayout *Register_mainVbox = new QVBoxLayout(Register_Widget);
        QVBoxLayout *Register_roofVbox = new QVBoxLayout();
        QVBoxLayout *Register_bottomVbox = new QVBoxLayout();

        NLineEdit *Register_idLine = new NLineEdit(User_clockWidget);

        NLineEdit *Register_keyLine = new NLineEdit(User_clockWidget);

        NLineEdit *Register_QkeyLine = new NLineEdit(User_clockWidget);

        NLineEdit *Register_aliasLine = new NLineEdit(User_clockWidget);

        // Register Verification Code Widget Divition

        NVerificationCode *Register_verifyWin = new NVerificationCode(5,
                                                                      4,
                                                                      5,
                                                                      400,
                                                                      20,
                                                                      Qt::NoBrush,
                                                                      QColor(240,243,246),
                                                                      User_clockWidget);
        QHBoxLayout *Register_verifyHbox = new QHBoxLayout();
        NLineEdit *Register_verifyinput = new NLineEdit(User_clockWidget);

        // Register Assist Widget Divition
        QPushButton *Register_sumbit = new QPushButton("注册", User_clockWidget);
        //------User Register------"""
        //------Private Info Widget------"""
        Nwidget *Datum_Widget = new Nwidget(User_clockWidget);
        QVBoxLayout *Datum_mainVbox = new QVBoxLayout(Datum_Widget);
        Nwidget *Datum_inner = new Nwidget(Datum_Widget);
        QVBoxLayout *Datum_innerVbox = new QVBoxLayout(Datum_inner);

        NCropLabel *Datum_head = new NCropLabel(NULL, User_clockWidget);
        NcomboBox *Datum_historyBox = new NcomboBox(User_clockWidget);

        QPushButton *Datum_register = new QPushButton("跳转至注册", User_clockWidget);
        QPushButton *Datum_submit = new QPushButton("提交", User_clockWidget);
        QHBoxLayout *Datum_bottomHbox = new QHBoxLayout();

        NLineEdit *Datum_idLine = new NLineEdit(User_clockWidget);
        QLineEdit *Datum_keyLine = new QLineEdit(User_clockWidget);
        QLineEdit *Datum_QkeyLine = new QLineEdit(User_clockWidget);
        QLineEdit *Datum_aliasEdit = new QLineEdit(User_clockWidget);
protected:
    MOUSE_ATTRIBUTE MSEVKEY;
};

#endif // NACCOUNTWIN_H
